package cn.ratel.route.injector;

import org.apache.commons.io.FileUtils;

import java.io.File;

/**
 * author iver
 */
public class UploadedFile {
	private String name;
	private String path;

	public UploadedFile(String name, String path) {
		this.name = name;
		this.path = path;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void delete() {
		FileUtils.deleteQuietly(new File(path));
	}
}
